package com.lf.DAO;

import java.util.List;

import com.lf.entity.shiti.students;



public interface studentDAO {
	/*管理员查询所有学生信息*/
	public List<students> findAll();
	
	/*根据学生ID查询学生信息*/
	public List<students> find_student_name(int s_id);
	
	/*添加学生资料*/
	public int add_stu(int s_id,String s_name,String s_password,int s_age,String s_address,String s_major,String s_class);
	
	/*更新学生信息*/
	public int update_stu(int s_id,String s_name,String s_password,int s_age,String s_address,String s_major,String s_class,int id);
	
	/*删除学生信息*/
	public int delect_stu(int s_id);
	
	/**
	 * 学生登录
	 * @param s_id
	 * @return
	 */
	public List<students> login(int s_id);
}
